﻿@model kmaraszkiewicz.Models.Photo

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm("Create", "Photo", new { id = ViewBag.ProjectId }, FormMethod.Post, new { enctype = "multipart/form-data" }))
{ 
    @Html.AntiForgeryToken()
    @Html.HiddenFor(model => model.ProjectId, new { @Value = ViewBag.ProjectId });
    <p>
        <input type="file" id="file" name="file"/>
    </p>
    <p>
        <input type="submit" value="Create" /></p> 
}


<div>
    @Html.ActionLink("Back to List", "Edit", "Project", new { id = ViewBag.ProjectId }, null)
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
